﻿// 突出显示obj
function showColor(obj){
    var sY = "BACKGROUND-IMAGE:URL(../IMAGES/BUTT_CEN.jpg);"; //注意此项必须大写
    
    var oTd = document.getElementsByTagName("td");
    // 清除页面上的添加的菜单样式

    for (var i=0 ;i<oTd.length ;i++){
        var tt = oTd[i].style.cssText;
        if (tt.indexOf("BACKGROUND-IMAGE") >= 0){
            tt = tt.substring(0,tt.indexOf("BACKGROUND-IMAGE"));
        }
        oTd[i].style.cssText = tt;
    }
    // 给obj添加样式
    objTd = document.getElementById("mTd_"+obj.id);
	objTd.style.cssText =  sY + objTd.style.cssText ;
}
<!-- 备份-->
//function showColor(obj){
  //  var sY = "BACKGROUND-COLOR:#CEEAF7;"; //注意此项必须大写
    
 //   var oTd = document.getElementsByTagName("td");
    // 清除页面上的添加的菜单样式

 //   for (var i=0 ;i<oTd.length ;i++){
 //       var tt = oTd[i].style.cssText;
  //      if (tt.indexOf("BACKGROUND-COLOR") >= 0){
  //          tt = tt.substring(0,tt.indexOf("BACKGROUND-COLOR"));
  //      }
//        oTd[i].style.cssText = tt;
 //   }
    // 给obj添加样式
  //  objTd = document.getElementById("mTd_"+obj.id);
	//objTd.style.cssText =  sY + objTd.style.cssText ;
//}


 //数据过滤左侧菜单收展
 function cFilterMenu(pid) {
	 var contentObj = document.getElementById("filtermenu"+pid);
	 var imageObj = document.getElementById("imgArrow"+pid);
	 if(contentObj.style.display=="none")
	 {
		contentObj.style.display = "block";
		imageObj.src = "../images/butt_arrow_down.gif";
	 }
	 else
	 {
		contentObj.style.display = "none";
		imageObj.src = "../images/butt_arrow_up.gif";
	 }
 }


 //数据过滤鼠标保持状态


 var nodeSum = '';
 function filterTabulation(fid,toltalID) {
	 //var toltalID = parseInt(nodeSum);
	 //for(i=1;i<=toltalID;i++)
	 //{
		//document.getElementById("filterTd"+i).className="left_menu_normal";
	 //}
	 //document.getElementById("filterTd"+fid).className="left_menu_down";
 }

 function filterTdOut(fid) {
	 //if(document.getElementById("filterTd"+fid).className!="left_menu_down")
	 //{
	//	document.getElementById("filterTd"+fid).className="left_menu_normal";
	// }
 }

  function filterTdOver(fid) {
	 //if(document.getElementById("filterTd"+fid).className!="left_menu_down")
	 //{
		//document.getElementById("filterTd"+fid).className="left_menu_over";
	 //}
 }
 
 ///,opID,opOnText,opOffText
 
 //£Ϣ
function cResultInfo(contentID,iconID,onImg,offImg) {
	var contentObj = document.getElementById(contentID);
	var iconObj = document.getElementById(iconID);

	if(contentObj.style.display=="block")
	{
		contentObj.style.display = "none";
		iconObj.src = offImg;

	}
	else
	{
		contentObj.style.display = "block";
		iconObj.src = onImg;

	}
}
